package cn.kimming.wms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kimming.wms.dao.IClientDAO;
import cn.kimming.wms.domain.Client;
import cn.kimming.wms.query.QueryObject;
import cn.kimming.wms.service.IClientService;

@Service("clientService")
public class ClientServiceImpl implements IClientService {

	@Autowired
	private IClientDAO clientDAO;
	
	@Override
	public void save(Client obj) {
		clientDAO.save(obj);
	}

	@Override
	public void update(Client obj) {
		clientDAO.update(obj);
	}

	@Override
	public void delete(Long id) {
		clientDAO.delete(clientDAO.get(id));
		
	}

	@Override
	public Client get(Long id) {
		return clientDAO.get(id);
	}

	@Override
	public List<Client> list() {
		return clientDAO.list();
	}

	@Override
	public List<Client> query(QueryObject qo) {
		return clientDAO.query(qo);
	}
}
